import request from '@/utils/request'

// 订单列表
export function shopOrderList(data) {
  return request({
    url: '/user/shop/order/getShopOrderList',
    method: 'post',
    data
  })
}
// 订单列表详情
export function shopOrderDetail(data) {
  return request({
    url: '/user/shop/order/getShopOrderDetail',
    method: 'post',
    data
  })
}
// 订单列表详情
export function cancelOrderByShop(data) {
  return request({
    url: '/user/shop/order/cancelOrderByShop',
    method: 'post',
    data
  })
}
// 订单列表详情
export function sendToPlatformGood(data) {
  return request({
    url: '/user/shop/order/sendToPlatformGood',
    method: 'post',
    data
  })
}
// 获取商户售后订单详情
export function shopOrderAfterList(data) {
  return request({
    url: '/user/shop/order/getShopOrderAfterList',
    method: 'post',
    data
  })
}
// 获取商户售后订单详情
export function shopOrderAfterDetail(data) {
  return request({
    url: '/user/shop/order/getShopOrderAfterDetail',
    method: 'post',
    data
  })
}
// 商户审核售后订单
export function reviewShopOrderAfter(data) {
  return request({
    url: '/user/shop/order/reviewShopOrderAfter',
    method: 'post',
    data
  })
}
// 确认收货
export function confirmAccept(data) {
  return request({
    url: '/user/shop/order/confirmAccept',
    method: 'post',
    data
  })
}
